add if condition check
Merge pull request #1 from lcmtwn/master

add if condition check to handle JSON field value: 0 and empty string