Well spoted ! `sqrt` returns a float or NAN for negative numbers.

Isn't it better to do `if (0.0 === $sinSigma) {` instead ?