Throw exception if z[0] is zero