Would it make more sense if true corresponded to locked? ex: isLocked(device, true)