public function hasActiveDomains() { return $this->domains->exists(function ($index, Domain $domain) { return $domain->getActive(); }); }