Intention to turn an assert statement into an If with a throw