function testFunction() { }
%a = isDefined(testFunction); // true

// Define an object called TestObject, which is a ScriptObject
new ScriptObject(TestObject);
// Define a method in TestObject's name namespace
function TestObject::testMethod(%this) {}
%b = TestObject.isMethod(testMethod); // true

// Define a method in TestObject's parent namespace
function ScriptObject::testAncestorMethod(%this) {}
%c = TestObject.isMethod(testAncestorMethod); // true