handle booleans and nullish