check if query is empty in results page