public function isPersisted(Identifier $identifier) { $persisted = false; $storage = $this->getStorageFromRegistry($identifier); if ($storage != null) { $persisted = true; } return $persisted; }