@property
    def has_custom_logo(self):
        return (self['_attachments'] and
                self['_attachments'] in LOGO_ATTACHMENT)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/domain/models.py/Domain.has_custom_logo/swapped operands of `in`