You have 2 different errors here, you need two `if` - and the `LegacyThrow` update