Hide flash element if there is none?

It is clever but it brakes if you use mix format because it transform it into

<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
</p>

instead of one line. Making p:empty selector to fail.