Properly handle the case when there are no results returned.