protected function HasPages(Site $site)
    {
        $this->site = $site;
        $this->tree = new PageTreeProvider($site);
        $this->page = $this->tree->TopMost();
        return (bool) $this->page;
    }
protected function HasPages(Site $site)
    {
        $this->site = $site;
        $this->tree = new PageTreeProvider($site);
        $this->page = $this->tree->TopMost();
        return (bool) $this->page;
    }
protected function HasPages ( Site $ site ) { $ this -> site = $ site ; $ this -> tree = new PageTreeProvider ( $ site ) ; $ this -> page = $ this -> tree -> TopMost ( ) ; return ( bool ) $ this -> page ; }
Sets the site as current site and returns true if it has pages below
@param Site $site The site to set and check for pages
@return boolean Returns true if the site has pages
Sets the site as current site and returns true if it has pages below