public function offsetGet($key) { return $this->offsetExists($key) ? $this->engine_state_registry[$key] : null; }