&gt; Not sure `getWhenPresent()` is better. Maybe `unsafeGet()`? That&#x27;s a pattern found a lot on functional structures such as `IO` or `Task`.<p>It&#x27;s not unsafe, it safely throws an error when the optional is empty.<p>There already is a #orElseThrow(Exception), there could be a #orElseThrow() defaulting to raising NoSuchElementException.