Again had to fix the problem of a.x = 0 === false. Bugger.