結果 : how to use optional instead of null check in java