Fixing the syntax to check if the bridge exists