the `? true : false` can be removed