btw, I think we can replace this whole block with [#pick()](https://github.com/puppetlabs/puppetlabs-stdlib#pick)