Moving all assertion chains into `if` statements