Fixing function call on a function that might not exist