checking if the dropped device is added to the array
checking if the dropped device is added to the array