def allowed_to_render?(fieldset, field, model, options)
      return true unless fieldset.is_a? ActsAsApi::ApiTemplate

      fieldset_options = fieldset.options_for(field)

      if fieldset_options[:unless]
        !(condition_fulfilled?(model, fieldset_options[:unless], options))
      elsif fieldset_options[:if]
        condition_fulfilled?(model, fieldset_options[:if], options)
      else
        true
      end
    end
def allowed_to_render?(fieldset, field, model, options)
      return true unless fieldset.is_a? ActsAsApi::ApiTemplate

      fieldset_options = fieldset.options_for(field)

      if fieldset_options[:unless]
        !(condition_fulfilled?(model, fieldset_options[:unless], options))
      elsif fieldset_options[:if]
        condition_fulfilled?(model, fieldset_options[:if], options)
      else
        true
      end
    end
Decides if the passed item should be added to
 the response based on the conditional options passed.