Improve uninitialized array solution.