Here you can find the source of isEmpty(T[] array)
public static <T> boolean isEmpty(T[] array)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static <T> boolean isEmpty(T[] array) { return array == null || array.length == 0; }//from www .j ava2s . com public static boolean isEmpty(Collection<?> collection) { return collection == null || collection.isEmpty(); } public static boolean isEmpty(Map<?, ?> map) { return map == null || map.isEmpty(); } }