public function isCollectionAvailable(\collection $collection)
    {
        if (!$this->isRestricted()) {
            return true;
        }

        $availableCollections = isset($this->availableCollections[$collection->get_sbas_id()])
            ? $this->availableCollections[$collection->get_sbas_id()] : [];

        return in_array($collection->get_base_id(), $availableCollections, true);
    }