This `if` should be `when`.