public function offsetGet($Instance) { if ($this->Storage->contains($Instance)) { return $this->Storage[$Instance]; } else { if ($this->InversedStorage->contains($Instance)) { return $this->InversedStorage[$Instance]; } else { return null; } } }