'If only_presence is True don\'t perform any expensive checks'

def is_device_connected(self, device, debug=False, only_presence=False):

    return device.is_usb_connected(self.devices, debug=debug, only_presence=only_presence)
