Gets the number of the last page from a Pagination state. Uses the total number of items and the page size to calculate the final page.
Returns True if there is a next page in the pagination, False otherwise.
Returns True if there is a previous page in the pagination, False otherwise.