class ArrayUtils {

    public static boolean checkArraysLength(Object[] first, Object[] second) {
        int lengthOfFirstArray = first != null ? first.length : 0;
        int lengthOfSecondArray = second != null ? second.length : 0;

        return lengthOfFirstArray == lengthOfSecondArray;
    }

}