I didn't used the proposed pattern because it will not check if $hiera_merge contains a value which can be converted to boolean.
You'll get a unspecific error message if you use something wrong for $hiera_merge.

@ghoneycutt: please decide which way to go