public function find($name) { $this->_node = Node::findByName($name); if ($this->_node !== null) { $this->attributes = $this->_node->attributes; } return $this->_node !== null; }