code: public static final boolean toBoolean(String str, boolean trueIfNull) {
          if (str == null && trueIfNull) {
              return true;
          }
  
          return toBoolean(str);
      }
docs: Just as {@link #toBoolean(String)}, except that true will be returned if str = null when {@code trueIfNull} is
  true, false otherwise.