<% if (errors instanceof Array) { %> <% errors.forEach(function (error) { %> <%- error %> <% }); %> <% } else { %> <%- errors %> <% } %>