/** * (PHP 5 >= 5.0.0)<br/> * Whether a offset exists * @link http://php.net/manual/en/arrayaccess.offsetexists.php * @param mixed $offset <p> * An offset to check for. * </p> * @return boolean true on success or false on failure. * </p> * <p> * The return value will be casted to boolean if non-boolean was returned. */ public function offsetExists($offset) { $this->reloadStore(); if (isset($this->warps[$offset]) || $this->flag >= 2 && $this->store->exists($offset)) { return true; } return false; }
protected function registerDefault($name, $text) { if (!$this->store->exists($name)) { $this->store->add($name, $text); } }