Actually, I'm inclined to agree. I think this would be cleaner if the code pertaining to all pages with the search bar were separated from the code pertaining only to the search results page.