code: public static boolean isEmpty(String[] pStringArray) {
          // No elements to test
          if (pStringArray == null) {
              return true;
          }
  
          // Test all the elements
          for (String string : pStringArray) {
              if (!isEmpty(string)) {
                  return false;
              }
          }
  
          // All elements are empty
          return true;
      }
docs: Tests a string array, to see if all items are null or an empty string.
  
  @param pStringArray The string array to check.
  @return true if the string array is null or only contains string items
  that are null or contain only whitespace, otherwise false.