I want to use the java Optional operator to avoid nullchecks like:

```
if(outher != null && outher.getNested() != null &&
          outher.getNested().getInner() != null && outher.getNested().getAnotherInner() != null)

```

I looked up some tutorials at the internet + Java cheatsheet but didn't find how to resolve the:`outher.getNested.getInner() != null && outher.getNested.getAnotherInner != null` part.

So how to do that correctly something like:

```
Optional.of(outher)
.map(Outher::getNested)
.map(Nested::getInner)
.map(Nested::getAnotherInner)
.isPresent();

```

would be awesome