Merge "Add explicit Result::has_value() checks where needed"