I think either you should be doing this validation with an `assert()` or you should be setting an error message. Seems like an assert case to me, but I'm not sure how you envision this being used.