I don't understand why this needs to happen? Above, it pushes the attachments into an array, just to loop through that array later—why can't that whole step be skipped?