Hide flash element if there is none?

I’d just not render anything if there’s no flash message to show. Imo the p:empty css phoenix uses is a clever way to handle no alerts, but also a bit to clever one.

I usually change this to something like this:

<%= for type <- [:info, :error], flash = get_flash(@conn, type) do %>
  …
<% end %>