Twig_Node::hasNode
Returns true if the node with the given identifier exists.
Signature
public function hasNode(
$name )
Parameters
$name
—
Returns
- Boolean
- true if the node with the given name exists, false otherwise