Remove unnecessary check in index merge