Check if function exists before register them again