Instead of writing just:
you can enclose it in a <$list> widget like this:
<$list filter="[all[current]tagging[]sort[modified]limit[1]]">
<h1>Related:</h1>
</$list>
This <$list> widget uses the same filter syntax as the <$list> widget that actually produces the link output, but with the added "limit[1]". This effectively turns the widget into a test that says "if the filter results are not empty, show the heading". Note: you can optimize this filter a bit more by leaving out the "sort[modified]" syntax, since it doesn't affect the test conditions.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals