fix set/get attribute for cases when the value is falsey