Can use `nonDefaultUrl.isPresentAndNonNull() && !"".equals(nonDefaultUrl.get())`
Note the fix for comparing a maybe with the empty string, rather `nonDefaultUrl.get()`.