` ? true : false` can be removed