Just fixing a bug I ran across where attachments was an empty array.