We have some pretty half baked validation going on in refheap. We should use a library designed for validating. Options: - [validateur](https://github.com/michaelklishin/validateur) - noir.validations Probably the former.