"Whether" needs to be accompanied by an "or" clause. I'm not a fan of using it in the case of "Whether or not," so maybe "Set to `true` when..." would be best.