fix for falsy value handling (0 and null)

see #1