public static boolean isRectangleDimension(boolean[][] matrix) {
		if(matrix == null)
			return false;
		
		int width = matrix[0].length;
		for(int row = 0; row < matrix.length; row++) {
			if(width != matrix[row].length)
				return false;
		}
		return true;
	}