Check if we have the source code of a template, given its name.
string $name The name of the template to check if we can load:
boolean If the template source code is handled by this loader or not
Overrides Twig_ExistsLoaderInterface::exists
public function exists($name) {
$name = (string) $name;
if (isset($this->cache[$name])) {
return true;
}
try {
$this
->findTemplate($name);
return true;
} catch (Twig_Error_Loader $exception) {
return false;
}
}