public function has($key) { if (!$this->prepareKey($key)) { return false; } return isset($this->data[$key]); }