public function exists($name)
    {
        return $this->getLegacyKernel()->runCallback(
            static function () use ($name) {
                $legacyTemplate = eZTemplate::factory()->loadURIRoot($name, false, $extraParameters);

                return !empty($legacyTemplate);
            }
        );
    }
public function exists($name)
    {
        return $this->getLegacyKernel()->runCallback(
            static function () use ($name) {
                $legacyTemplate = eZTemplate::factory()->loadURIRoot($name, false, $extraParameters);

                return !empty($legacyTemplate);
            }
        );
    }
public function exists ( $ name ) { return $ this -> getLegacyKernel ( ) -> runCallback ( static function ( ) use ( $ name ) { $ legacyTemplate = eZTemplate :: factory ( ) -> loadURIRoot ( $ name , false , $ extraParameters ) ; return ! empty ( $ legacyTemplate ) ; } ) ; }
Returns true if the template exists.

@param mixed $name A template name or a TemplateReferenceInterface instance

@return bool true if the template exists, false otherwise
Returns true if the template exists .