Added __nonzero__ method to the ndobject