While creating a new variable that is only used once is questionable, here, it makes the code more readable, since it is an array. It means that the keys of the array are nested one tab less, the array can be more easily var_dumped, and most importantly, it keeps the data separate from what we're doing with the data, until the last possible moment.