Check if a function is defined before mangling.