boolean undef set at 2 instead of 0. This means the 0 & 1 function basically as expected