private function existsFrontEnd()
    {
        $frontEndController = $this->getFrontEndController();
        return ($frontEndController !== null) && is_object($frontEndController->tmpl)
            && $frontEndController->tmpl->loaded;
    }