IsMatrixEmpty function

Check if a matrix is empty