one minor addition

had to account for if they enter “?search=“ into the url and try to
search for nothing, and make sure it doesn’t output an error.