make sure there is a device