Well, this is still not what I expect. I expect that there is no ret variable and you explicitelly return true or false, so it is clear in which situation device is bridgeable.