public function getCachedNodeByUuid($uuid, $class = 'Node') { if (array_key_exists($uuid, $this->objectsByUuid)) { return $this->getCachedNode($this->objectsByUuid[$uuid], $class); } return null; }