devIsOpen function

Checks if zero or more devices are open or not