true and false are just cast to int 1 and 0 correspondingly. No problem here.