Proper comparison with zero for determinant