code: public static boolean isInitialized() {
      final boolean loaded =
          JQueryResources.rememberEvent != null || StringUtils.isEmpty(JQueryResources.JQUERY_URL);
      return loaded || JQueryResources.isInHeader();
    }
docs: check if script is available and initialized.
  
  @return true if it exists