Example of using Optional feature of Java 8