Hey @Devartis,
You are correct, this is an error in the documentation. We will get that fixed. Thanks for catching that!
Also good explanation by @Ep8Script of using if vs option as a failure context. If you wanted to store the result of a failure expression, option is a good…option! But, if you just want to do the thing in the failure expression and you don’t need to store the result, if might be a better choice.