JW.Array.isEmpty and JW.Array.getLength work for null arrays as well.