package chihane.utils;

public class Arrs {
    public static boolean isEmpty(Object[] array) {
        return array == null || array.length == 0;
    }

    public static boolean notEmpty(Object[] array) {
        return array != null && array.length > 0;
    }
}

@@ -255,11 +255,128 @@
 0;%0A    %7D
+%0A%0A    public static %3CI%3E I lastItem(I%5B%5D items) %7B%0A        return isEmpty(items) ? null : items%5Bitems.length - 1%5D;%0A    %7D
 %0A%7D%0A

Add lastItem() to Arrs