Fix condition to support non-string values.