Make library more dev-friendly.

Fixes #1.
Ah yes, I somehow managed to ignore that. Given that, `forEach` will raise an exception if called on `null`.