I am creating a function that checks if my data is a matrix and if the matrix is square. After that, I am using a for loop to check the off diagonal elements. To do that, I