protected function getInstanceForCollection($tag) { $collectionSet = $this->DvsCollectionSet->newInstance()->where('name', $tag['collection'])->first(); $collectionSet = $collectionSet ?: $this->createCollectionSet($tag); return $collectionSet; }