formatting cleanup

formatting clean up thanks to @ichernev
simplified zeroInt

simplified evaluation of x !== 'undefined'