Add a NotificationCommand object defined type, refs#7214

A check in the template like `<%- if @env.empty? != true -%>` should work. I also suggested the same for `env`.