def _filter_condition_met?(rule)
      # Both:
      # * no :if or the if condition evaluates to true
      # * no :unless or the unless condition evaluates to false
      (!rule.key?(:if) || _evaluate_condition(rule[:if])) &&
      (!rule.key?(:unless) || ! _evaluate_condition(rule[:unless]))
    end
def _filter_condition_met?(rule)
      # Both:
      # * no :if or the if condition evaluates to true
      # * no :unless or the unless condition evaluates to false
      (!rule.key?(:if) || _evaluate_condition(rule[:if])) &&
      (!rule.key?(:unless) || ! _evaluate_condition(rule[:unless]))
    end
Determines whether the filter should be run based on the conditions passed (:if and :unless)

 ==== Parameters
 rule<Hash>:: Rules for the filter (see below).

 ==== Options (rule)
 :if<Array>:: Optional conditions that must be met for the filter to fire.
 :unless<Array>::
   Optional conditions that must not be met for the filter to fire.

 ==== Returns
 Boolean:: True if the conditions are met.

 :api: private