`if @www_root` should be more than sufficient here, since it is `undef` by default. https://github.com/jfryman/puppet-nginx/blob/master/manifests/resource/vhost.pp#L121

Also, `<%-`?