make batch of length 0 a noop