Checks if resultset is empty before displaying