Just curious if/why you encountered this exception. Also, would an assert be better than require here?