resultset checking for empty