Is this a splice instead of a simple empty array assignment here because otherwise we would change the reference, but not the existing array itself, which is referenced from somewhere else?