src/Common/Pagination/Pagination.php
public function isPage(int $number): bool
    {
        return (in_array($number, $this->pages)) ? true : false;
    }
public function isPage(int $number): bool
    {
        return (in_array($number, $this->pages)) ? true : false;
    }
public function isPage ( int $ number ) : bool { return ( in_array ( $ number , $ this -> pages ) ) ? true : false ; }
Check if a page exists
@param int $number
@return bool
Check if a page exists