couldn't you just use `assert`?