public function isLayoutValid(Site $site, $layoutKey)
    {
        $themesConfig = $this->getSiteThemeLayoutsConfig($site->getTheme());

        if (!empty($themesConfig[$layoutKey])) {
            return true;
        }

        return false;
    }
public function isLayoutValid(Site $site, $layoutKey)
    {
        $themesConfig = $this->getSiteThemeLayoutsConfig($site->getTheme());

        if (!empty($themesConfig[$layoutKey])) {
            return true;
        }

        return false;
    }
public function isLayoutValid ( Site $ site , $ layoutKey ) { $ themesConfig = $ this -> getSiteThemeLayoutsConfig ( $ site -> getTheme ( ) ) ; if ( ! empty ( $ themesConfig [ $ layoutKey ] ) ) { return true ; } return false ; }
Check to see if a layout is valid and available for a theme

@param Site $site Site to lookup
@param string $layoutKey Layout name to search

@return boolean
@throws InvalidArgumentException
Check to see if a layout is valid and available for a theme