public function setGroupCollectionMapping($groupId, $collectionId) { if (!is_array($this->groupCollectionMapping)) { $this->groupCollectionMapping[$groupId] = $collectionId; } }