Here you can find the source of isEmpty(final X[] array)
public static <X> boolean isEmpty(final X[] array)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static <X> boolean isEmpty(final X[] array) { return (isNull(array) || 0 == array.length); }//from w ww . ja v a 2 s . c o m public static boolean isEmpty(final Collection<?> collection) { return (isNull(collection) || 0 == collection.size()); } public static boolean isNull(final Object obj) { return (null == obj); } }