bool hasFunction(String functionName) { try { return knotContainerWithName(functionName) != null; } catch (e) { return false; } }