If node['datadog']['custom_emitters'] doesn't exist it will give no method error? I would just say <% if node['datadog']['custom_emitters'] -%>   We have to presume if its defined, its defined correctly.