public function popContext(&$context, $name) { if (!empty($this->stack[$name])) { $context[$name] = array_pop($this->stack[$name]); } return $this; }