Fix `function_exists` checks.