added a conditional to show a flash notice for when the query is empty