std::optional methods, so functions returning optional<T> can change to return Result<T> with minimal changes to existing code, and vice versa.
Declared in <util/result.h>
bool
has_value() const noexcept;
true if the result holds a value, false if it holds an error