Manual:Hooks/SpecialSearchNogomatch

Details
$title will be the Title object of the page searched for if it doesn't exists. This hook only runs if the page being searched for doesn't exists.