public function listCollections() { foreach ($this->getCollectionNames() as $name) { if (!isset($this->collections[$name])) { $this->collections[$name] = new Collection($name, $this); } } return $this->collections; }