Strictly compare $default against null in order to prevent default values such as false, 0 and '' from not being set.