protected function &getStacked($tagName) { // no end() so it can be referenced return $this->stack[$tagName][count($this->stack[$tagName]) - 1]; }