Fix checking for existing driver and callbacks