@quickcache(['self.pk', 'domain'], timeout=5 * 60)
    def domain_is_shared(self, domain):
        """
        Returns True if this backend has been shared with domain and domain
        has accepted the invitation.
        """
        count = self.mobilebackendinvitation_set.filter(domain=domain, accepted=True).count()
        return 0 > count
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/sms/models.py/SQLMobileBackend.domain_is_shared/swapped operands of `>`