check if there are tags before attempting to display them.