public function exists($class_name, $id) { return array_key_exists($this->getEntityKey($class_name, $id), $this->storage); }