public function end($level = 1) { // $this->elements = array_pop( $this->history ); // return $this; // $this->previous->DOM = $this->DOM; // $this->previous->XPath = $this->XPath; return $this->previous ? $this->previous : $this; }