def has_effect(self, effect):
        """
        Check if given type of effect exists in collection

        :param effect: effect to check
        :type effect: Effect
        """
        return [x.effect_name for x in self.effects] in effect.effect_name
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/data/effects/effectscollection.py/EffectsCollection.has_effect/swapped operands of `in`