Improve checking div by zero.
Improve.