docs: public static boolean hasInstanceOf(final JSONObject json, final String key,
                                          Class<?> type) {
          Object o = json.opt(key);
          return isInstanceOf(o, type);
      }