Manual:Hooks/SpecialSearchNogomatch

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