<% if(Object.keys(tasks).length> 0) { %> <% } else { %>
Please add some task.
<% }%>