public function offsetExists($index) { foreach ($this->keys() as $key) { if ($key === $index) { return true; } } return false; }