dont set empty arrays as null