Don't match on bool, use if/else instead.