public function getCollection($name) { return array_key_exists($name, $this->collectionsByName) ? $this->collectionsByName[$name] : null; }