def has_variant(self, options, only_active=True):
        if self.get_variant(options, only_active=only_active) is None:
            return False
        else:
            return True

    # Dimensions
Returns true if a variant with given options already exists.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.has_variant