Verifying if a path is defined (when compiled conditionally) in v0.18

Upgrading to v0.18 …

Since Router.Helpers is no longer used, what would be the proper way to achieve the same effect as the following in template code but with the verified routes?

<%= if function_exported?( Routes, :live_dashboard_path, 2) do %>
  <li>LiveDashboard present</li>
<% end %>

PS. I am aware I can use the :if attribute instead, but that’s not the point.