I wanted to be more readable. I removed unnecessary variable wantedArray.