Why an `if` statement in stead of a regular assertion?