Added IsDefinedFunction.