<%- if @check.comment.present? -%>

You wrote the following comment with this domain:

<%= @check.comment -%>

<%- end -%> <%- if @check.vendor.present? -%> Vendor: <%= @check.vendor %> <% end %>