Pantheon\Terminus\Collections\Domains::has PHP Method

has() public method

Does the Domains collection contain the given domain?
public has ( $domain ) : boolean
$domain
return boolean True if the domain exists in the collection.
    public function has($domain)
    {
        try {
            $this->get($domain);
            return true;
        } catch (TerminusNotFoundException $e) {
            return false;
        }
    }