code: public <R> Optional<R> map(Func1<T, R> func1) {
          return value == null ? Optional.<R>empty() : Optional.of(func1.call(value));
      }
docs: Transforms the value if exists, returns empty Optional otherwise.