That was completely unnecessary. You read a tag. You might have read a new tag - this tag is not the same as the last tag - or you might have read the same tag again - this tag is the same as the last tag. It isn't THAT difficult to do something only when this tag not equal that tag.