protected function templateExists($template)
    {
        try {
            $class = $this->templating->getTemplateClass($template);
        } catch (Twig_Error_Loader $e) {
            return false;
        }

        return $template;
    }
protected function templateExists($template)
    {
        try {
            $class = $this->templating->getTemplateClass($template);
        } catch (Twig_Error_Loader $e) {
            return false;
        }

        return $template;
    }
protected function templateExists ( $ template ) { try { $ class = $ this -> templating -> getTemplateClass ( $ template ) ; } catch ( Twig_Error_Loader $ e ) { return false ; } return $ template ; }
Does the given template exists?

@param string $template

@return boolean
Does the given template exists?