Yes, cause problem occurs when trying any operation that uses the metric.
Perhaps a better test is also to verify that string representation corresponds to a square matrix.