def non_empty_array?(value, uniqueness_check = true)
      result = value.is_a?(Array) && !value.empty?
      if uniqueness_check
        result && value.size == value.uniq.size
      else
        result
      end
    end
def non_empty_array?(value, uniqueness_check = true)
      result = value.is_a?(Array) && !value.empty?
      if uniqueness_check
        result && value.size == value.uniq.size
      else
        result
      end
    end
Returns true if a given value is a non-empty array

 @param value [Object]
 @return [Boolean]