<% (contacts || []).forEach(c => { %>
... existing row ...
<% }) %>