<% var that = this; %> <% if (!_.isEmpty(that.attachments)) { %> <% } %>