code: private static boolean getBooleanProperty(Function function, String propertyKey, boolean defaultValue) {
          Object value = function.getProperty(propertyKey);
          return value instanceof Boolean ? (Boolean)value : defaultValue;
      }
docs: Return a boolean property of the function
  
  @param function
  @param propertyKey
  @param defaultValue
  @return