src/Twig/Loader/DoctrineLoader.php
protected function isLoadableTemplate($name)
    {
        return !empty($name) && (empty($this->prefix) || strlen($name) > strlen($this->prefix) && strpos($name, $this->prefix) === 0);
    }
protected function isLoadableTemplate($name)
    {
        return !empty($name) && (empty($this->prefix) || strlen($name) > strlen($this->prefix) && strpos($name, $this->prefix) === 0);
    }
protected function isLoadableTemplate ( $ name ) { return ! empty ( $ name ) && ( empty ( $ this -> prefix ) || strlen ( $ name ) > strlen ( $ this -> prefix ) && strpos ( $ name , $ this -> prefix ) === 0 ) ; }
Check if the given name has the correct prefix for loading.

@param  string $name The name of the template to check
@return bool
Check if the given name has the correct prefix for loading .