v0.1.1: avoid recuding empty arrays