fixed bug when testing for an undefined returns false on 0.