naming bike-shed: In the context of software, confirm suggests to me prompting the user.  (ex: https://developer.mozilla.org/en-US/docs/Web/API/Window.confirm). Since your namespace already gives context, I'd say 'ensure' works, but that's generic, so maybe "ensureName" so you're not being super redundant?  And then ensureNameList below.