This is wrong, to check if page exists the page must be between 1 & maxPage
```php

return max(1, $page) <= ($this->getCountTotalEntries() / max(1, $pageSize));