I'd turn it around to `ref.name == part`.