Why literate through a array to create a new array?