Still, I have never understood why anyone would want to write
if (success == true)
if (success)
case result of Error e -> -- some error handling code Ok a -> -- the happy path