public function first() { $found = new \SplObjectStorage(); foreach ($this->matches as $m) { if ($m->nodeType == XML_ELEMENT_NODE) { $found->attach($m); break; } } return $this->inst($found, null, $this->options); }