Boolean and null handling