check to see if device