check for an existing tag before saving it