fkrauthan
function methodExistOrDefault(method, defaultValue) { if (typeof method === "function") { return method(); } return defaultValue; }