nonCurrentModes[] = $this->current; $this->current = $mode; } /** * Pop a mode from the stack */ public function pop() { $this->current = array_pop( $this->nonCurrentModes ); } /** * Return true if the stack is empty, false otherwise * @return bool */ public function isEmpty() { return $this->current === null; } }