`if` should be `when` here since there's no code for the "else" case.