Fix isBlank bug.

It should not remove `foo` in `{ foo: 0 }`
Code cleanup