Deleted the unnecessary function hasNextPage() in PaginationIterator.