Adding maybeToEither function