Display a tag only if there is a description

I’m building a site glossary and trying to display only tags with descriptions. Is there a way to determine if the description is available and only display the tag when it is?

Here is where I am so far.

    $tags = get_tags();
    if (tag_description($tag->term_id)) {
        if ($tags) {
            foreach ($tags as $tag) {
                echo '<dt><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></dt><dd>' . tag_description($tag->term_id) . '</dd>';
            }
        }
    }

Solutions Collecting From Web of "Display a tag only if there is a description"

The object returned by get_tags() should have a description property, so you don’t need to try to get it again. Just check to be sure $tags->description isn’t empty. You should probably also reorganize so that you don’t do anything at all unless if($tags). Thus:

// Get ALL the tags!
$tags = get_tags( array( 'hide_empty' => false ) );
if ($tags) {
  foreach ($tags as $tag) {
    if ($tag->description) {
      echo '<dt><a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a></dt><dd>' . $tag->description . '</dd>';
    }
  }
}