better way to use with undefined var
Merge pull request #36 from pojome/patch-1

better way to use with undefined var