Use puppetlabs/stdlib to validate inputs.

Use puppetlabs/stdlib to validate parameters.