Is there any way of displaying post tags (wordpress) if there are post tags?

In my single posts page, i would like to display the tags that are related to the post.

I came up with something like this:


<?php if (What do i put in here?) { ?>

     <p>Tags: <?php the_tags('', ' | ', ''); ?></p>

<?php } ?>

I was wondering on what to put in the if statement?

Is there a template tag or any code for this purpose.

In simple terms:

If there are tags with regards to this post, display them.

Thanks in advance.

Thank you for this!

You might want to use this

<?php if ( function_exists('the_tags') ) { the_tags('<span id="tags"><small class="tagged"><strong>Tagged under:</strong>', ', ', ' </small></span>'); } ?>