Strictly compare $default against null in order to prevent default values such as false, 0 and '' from not being set.
Merge pull request #8 from tomzx/fixes/8-fix-default-empty-values

Fix problem with empty/0 default values not being set