1. why not be consistent and use assert here as well?
2. the original `checkDust` checks for `null` and `undefined` as well. Is there a particular reason why you dropped it?