This will only return true if the bridge is active. You might want to use listDefinedNetworks() instead.