public boolean isTriangular(int[][] array) {
        boolean isTriangular = true;
        for (int i = 1; i < array.length; i++) {
            for (int j = 0; j < i; j++) {
                if (array[i][j] != 1) {
                    isTriangular = false;
                }
            }
        }
        return isTriangular;
    }