<% if ((primaryButton) && !(secondaryButtons && secondaryButtons.length)) { %> <% } else { %>
<% } %>