code: public static boolean hasProperty(Properties props, String key) {
      String value = props.getProperty(key);
      if (value == null) {
        return false;
      }
      value = value.toLowerCase();
      return ! (value.equals("false") || value.equals("no") || value.equals("off"));
    }
docs: Returns true iff the given Properties contains a property with the given
  key (name), and its value is not "false" or "no" or "off".
  
  @param props Properties object
  @param key The key to test
  @return true iff the given Properties contains a property with the given
  key (name), and its value is not "false" or "no" or "off".