unless needed to be an if
Merge pull request #4 from deanxorr/fix/bad_conditional_in_search

unless needed to be an if