Checking for nil value as default option instead of false.
It was checking for false which maked impossible to have an attribute
with default value equal false.
Added regression test.