How about checking it first with `hasName()`?