private function existsFrontEnd()
    {
        $frontEndController = $this->getFrontEndController();
        return ($frontEndController !== null) && is_object($frontEndController->tmpl)
            && $frontEndController->tmpl->loaded;
    }
private function existsFrontEnd()
    {
        $frontEndController = $this->getFrontEndController();
        return ($frontEndController !== null) && is_object($frontEndController->tmpl)
            && $frontEndController->tmpl->loaded;
    }
private function existsFrontEnd ( ) { $ frontEndController = $ this -> getFrontEndController ( ) ; return ( $ frontEndController !== null ) && is_object ( $ frontEndController -> tmpl ) && $ frontEndController -> tmpl -> loaded ; }
Checks whether there is an initialized front end with a loaded TS template.

Note: This function can return TRUE even in the BE if there is a front
end.

@return bool TRUE if there is an initialized front end, FALSE
otherwise
Checks whether there is an initialized front end with a loaded TS template .