Our teacher, the Beit Yosef, wrote in section 6: And similarly, the middle of a courtyard does not require checking, for if there were chametz there, the ravens and other birds found there would eat it. And these words apply to a doubt of chametz. But for certain chametz, no. Thus far his words. Our teacher, the Rema, wrote regarding this, and this is his wording: But later in siman 445, section 3, it is explained that it is permitted to cast chametz into a place where birds are found. And all the more so that one does not need to remove it from there, even certain chametz, until after the time of its prohibition. Thus far his words.
And there are those who answered that here it deals with his courtyard, and there it deals with the street or a courtyard that is hefker (Bach, and Taz subsection 5). And there are those who answered that certainly before the time of the checking, we rely even regarding certain chametz that they will eat it. But if one sees chametz at the time of the checking, he is certainly obligated to check. And we do not rely on the fact that they will eat it, for a doubt does not remove a certainty (Chok Yaakov, and this is also the intention of the Magen Avraham subsection 10, and the Levush, as the Eliyah Rabbah wrote). And there is one who distinguishes between the night of the fourteenth, for then we do not rely on the fact that they will eat it, and before the fourteenth (Mekor Chayim subsection 7).
And in my humble opinion, the first answer appears primary. For that which they said in the Gemara (9a) that a doubt does not remove a certainty—this is in his domain, in places that he is obligated to check. And in such a case, even several days beforehand, if it was merely established as having chametz, he is certainly obligated to check and to remove it. But later in siman 445, our teacher, the Beit Yosef, wrote explicitly, and this is his wording: Before the time of its prohibition, he may cast it in a place where ravens are found there. And if he found it after the time of its prohibition, even though the place is hefker, he shall not leave it there, but rather he shall remove it. Thus far his words. Behold, it explicitly deals with one who casts it into a place that is hefker, and this matter has no relation to the other at all. And so is the primary ruling.
(And as for what the Magen Avraham questioned: that if so, what was the challenge from Rava, perhaps here it deals with certain chametz? And his intention was to page 8. And it is not a difficulty at all: for every checking is to see if there is chametz, and therefore it requires the light of a candle. And if so, perforce it deals with a doubt of chametz. And regarding all that he contested there against the Bach—the one who examines will see that the law is with the Bach. And the Gra"z in section 28 wrote according to the words of the Magen Avraham, and in my humble opinion the primary view is like the Bach and the Taz. Examine it and you will find it simple.)
וכתב רבינו הבית יוסף בסעיף ו: וכן אמצעה של חצר – אינה צריכה בדיקה, שאם היה שם חמץ – העורבים ושארי עופות המצויים שם יאכלוהו. והני מילי מספק חמץ. אבל וודאי חמץ – לא. עד כאן לשונו. וכתב על זה רבינו הרמ"א, וזה לשונו: אבל לקמן סימן תמה סעיף ג מבואר דמותר להשליך חמץ במקום שהעופות מצויים. וכל שכן שאין צריך לבער משם, אפילו חמץ וודאי, עד לאחר זמן איסורו. עד כאן לשונו. ויש שתירצו דכאן מיירי לחצירו, ושם מיירי לרחוב ולחצר של הפקר (ב"ח, וט"ז סעיף קטן ה). ויש שתירצו דוודאי קודם זמן הבדיקה – סמכינן גם על וודאי חמץ שיאכלוהו. אבל אם רואין בשעת הבדיקה חמץ – וודאי מחוייב לבדוק. ואין סומכין על מה שיאכלוהו, דאין ספק מוציא מידי ודאי (ח"י, וזהו גם כוונת המגן אברהם סעיף קטן י, והלבוש, כמו שכתב האליה רבה). ויש מי שמחלק בין ליל ארבעה עשר, דאז אין סומכין על מה שיאכלוהו לקודם ארבעה עשר (מק"ח סעיף קטן ז). ולעניות דעתי נראה עיקר כתירוץ הראשון. שהרי מה שאמרו בגמרא (ט א) דאין ספק מוציא מידי וודאי – זהו ברשותו, במקומות שחייב לבדוק. ובכהאי גוונא אפילו כמה ימים מקודם, אם רק הוחזק חמץ – ודאי חייב לבדוק ולבער. אבל לקמן סימן תמה כתב להדיא רבינו הבית יוסף, וזה לשונו: קודם זמן איסורו – יכול להשליכו במקום שהעורבים מצויים שם. ואם מצאו לאחר זמן איסורו, אף על פי שהמקום הפקר – לא יניחנו שם, אלא יבערנו. עד כאן לשונו. הרי להדיא מיירי שמשליכנו למקום המופקר, ואין ענין זה לזה כלל. וכן עיקר לדינא. (ומה שהקשה המגן אברהם: דאם כן מאי פריך מרבא דילמא כאן מיירי בוודאי חמץ? וכוונתו לדף ח'. ולא קשה כלל: דכל בדיקה הוא לראות אם יש חמץ, ולכן צריך אור הנר. ואם כן בעל כרחך מיירי בספק חמץ. וכל מה שהשיג שם על הב"ח – המעיין יראה שהדין עם הב"ח. והגר"ז סעיף כח כתב כפי דברי המגן אברהם, ולעניות דעתי העיקר כהב"ח והט"ז. ודייק ותמצא קל.)