Added function for checking if a device is in a device set