Update to_b to utilise and change to_b to to_bool