The check should be localized only to added content, because otherwise the merge might fail in case of malfunction of url in unrelated content.