"totalPages" could have decimal places which then would lead to incorrectly disabling the "hasNextPage" flag