int length(Object value);

i.e.,

org.zkoss.xel.fn.CommonFns

Returns the length of a string, array, collection or map.

Notice that there is a bulit-in operator to test if a string/array/collection/map is empty:

${empty foo}