Handled the situation when there are no records.