Error (typechecking) Type mismatch. Expected: option Given: option