Crude way of detecting whether there are matching tags. It should be ==