`value ? true : false` is exactly the same as `!!value` (double inverting).
This means it makes any var a boolean.