Check tag presence correctly