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

                return !empty($legacyTemplate);
            }
        );
    }