public static bool function_exists(Context ctx, string name) { return ctx.GetDeclaredFunction(name) != null; } }