You don't need not-empty here.  (get) returns nil if there is no entry for JAVA_HOME, which is "falsey" and goo enough got when-let