public function sitePageExists(
        SiteEntity $site,
        $pageName,
        $pageType
    ) {
        try {
            $page = $this->getPageByName(
                $site,
                $pageName,
                $pageType
            );
        } catch (\Exception $e) {
            $page = null;
        }

        return !empty($page);
    }
public function sitePageExists(
        SiteEntity $site,
        $pageName,
        $pageType
    ) {
        try {
            $page = $this->getPageByName(
                $site,
                $pageName,
                $pageType
            );
        } catch (\Exception $e) {
            $page = null;
        }

        return !empty($page);
    }
public function sitePageExists ( SiteEntity $ site , $ pageName , $ pageType ) { try { $ page = $ this -> getPageByName ( $ site , $ pageName , $ pageType ) ; } catch ( \ Exception $ e ) { $ page = null ; } return ! empty ( $ page ) ; }
Site has page

@param SiteEntity $site
@param string $pageName
@param string $pageType

@return bool
Site has page