Better handling three state boolean