If statement for Nil results to the search query