Adding a check in case of empty results