code: public static boolean isEmpty(@Nullable String str) {
          if (str == null || str.length() == 0) {
              return true;
          }
          return false;
      }
docs: Return <code>true</code> if the given <code>str</code> is <code>null</code> or empty.