public function delete($key) { if (!$this->exists($key)) { return false; } unset($this->values[$key]); return true; }