Would you mind passing undefined instead of null?
This would make so that 'expr.error' thinks that no additional argument has been passed (a check like "typeof xxx === 'undefined'" will be true).
I hate that null and undefined are both falsey but are fundamentally different things in JS...