handling no results with empty array