prevent empty searches from being made