Missing checks for length, `results.staged['add']` and `results.staged['add']`.