Prevent external mutation and add test
Add required attachment fields
Use ! isset()