It makes sense to leave it as empty array. I.e: when you remove all elements of an Java array, the array becomes empty, not null. The JS splice method also returns an empty array when you remove all elements.