Fixes #25 improper boolean comparison of null value