code: public static boolean isTargetingEnabled() {
          Configuration config = ConfigUtils.getCurrentConfig();
          if (config != null) {
              return config.getBoolean(TARGETING_ENABLED_CONFIG_KEY, false);
          } else {
              return false;
          }
      }
docs: Returns trues if targeting is enabled.