```python
if attachments is not None:
    add_attachments(email, attachments)
```