code: public static boolean isEmpty(final Object array) {
  
      if (array == null) {
        return true;
      }
      boolean isArray = array.getClass().isArray();
      if (isArray) {
        int length = Array.getLength(array);
        return length == 0;
      }
      return isArray;
    }
docs: 判定给定的数组是否为空。</br> Returns true if given object is an not null array and it
  is length == 0; false otherwise.
  
  @param array 用来测试的数组。</br>the array to be tested.
  @return 如果给定的是数组并且为null或长度为0则返回true，否则返回false。</br>true if given object is
  an array and it is null or length == 0; false otherwise.