A matrix is called "singular" if its determinant equals 0. This also implies that the matrix has no inverse.
If the matrix is in Upper Triangular Form then you can just multiply the diagonal values together.