public function offsetUnset($key) { if ($this->offsetExists($key)) { unset($this->engine_state_registry[$key]); } }