Fix #79668: get_defined_functions(true) may miss functions Instead of some brittle and unefficient string matching, we can just check for the function handler.