Updated hasAnotherRow