Fix issue with default boolean value
What we want to check here is that the value is not defined, not that it is falsy.