Added no result found check