Even if `(params.has_key? :match_distributor)` works, it is unusual in Ruby code, I would replace it with more standart `params.has_key?(:match_distributor)`.