Switch to a one-liner for connected boolean.