Make boolean work with undefined.