Simplifying the function name validation for the existence of a module.