Hi, yes, I think Optional is good, and
you should use it instead of returning null when a method has no result.
Conversely, when someone gives you an Optional, then don't call isPresent and get. That's no safer than a possibly null pointer. Instead, use orElse, ifPresent, map, or flatMap to process the wrapped value.
For example,
Cheers,
Cay