remove redundant check from MergeTrajectories