handle batch insert of empty array