Also check the length of the result to determine if we've reached the end.