Corrected logic for no results