def parse_outcome(outcome, allow_exclusion:)
      valid_outcomes = experiment? ? variants.keys : [true]
      valid_outcomes << false if allow_exclusion
      valid_outcomes.include?(outcome) ? outcome : nil
    end
def parse_outcome(outcome, allow_exclusion:)
      valid_outcomes = experiment? ? variants.keys : [true]
      valid_outcomes << false if allow_exclusion
      valid_outcomes.include?(outcome) ? outcome : nil
    end
Validates the given outcome for this feature.