public function offsetExists($key) { $unwrapper = new Unwrapper(); $subject = $this->caller->getWrappedObject(); $key = $unwrapper->unwrapOne($key); $this->checkIfSubjectImplementsArrayAccess($subject); return isset($subject[$key]); }
/** * @param string|integer $key * * @return Subject */ public function offsetExists($key) { return $this->wrap($this->arrayAccess->offsetExists($key)); }