code: private static boolean isUnaryComparison(@Nullable Object value) {
      return value == null || value.equals(Double.NaN) || value.equals(Float.NaN);
    }
docs: Checks whether the provided object is NULL or NaN.