public static boolean allElementsAreZero(byte[] array) {
        for (byte b : array) {
            if (b != 0)
                return false;
        }
        return true;
    }
Check if all array elements equal to zero
@param array some array
@return true if all elements equal to zero
library/src/main/java/com/cleveroad/audiovisualization/Utils.java