Fix multimerge to handle empty arrays