duplicacy check function modified

tagNotPresent - dead code - else block removed