Optional null check for list in java 8 July 8, 2019 16 32 64 128 Java 8 optional Java 8 check if list is null or empty using optional