Make is_connected slightly more useful