def filter_element(data)
      if @element_filter
        data, el_errors = @element_filter.filter(data)
        return [data, el_errors] if el_errors
      elsif options[:class]
        if !data.is_a?(options[:class])
          return [data, :class]
        end
      end

      [data, nil]
    end
def filter_element(data)
      if @element_filter
        data, el_errors = @element_filter.filter(data)
        return [data, el_errors] if el_errors
      elsif options[:class]
        if !data.is_a?(options[:class])
          return [data, :class]
        end
      end

      [data, nil]
    end
Returns [filtered, errors]