<% if (state === null) { %>
<%= title %>
<% } else { %>
<%= title %>
<%= state %>
<% } %>