Instead of using `?:` I would assign the second function to `init.prompts[name].validator`.
Afterwards, check for `(oldValidator.length === 1)` and assign the other function if the comparison returns true.
For me, `?:` makes the code more confusing.