Check if type functions exist before calling them