<% if (images.length == 0 ) { %>

The gallery is still empty

<% } else { %>

There is <%= images.length %> images

<% } %>