Actually that is what I've resorted to as well. If there is something
better Id love to hear it as well. There is one other way, but not any
more convenient.
{% if url %}
<a href='{{url}}'><div class='something'>Some content</div></a>
{% else %}
<div class='something'>Some content</div>
{% endif %}
But thats even more bloated, so afik the solution you have is best.
Hope there is something better out there...