Fixed condition to display tags correctly

Making sure the condition is correct to display the tags if any