You can also use expression controllers for this. Precomp the comp that you want to turn on and off. Then create an empty layer and apply a checkbox controller. Write an if/else expression on the precomp for opacity. If checkbox is checked, opacity 100, if unchecked – opacity 0.
Something like this…
if(thisComp.layer(“Adjustment Layer 1”).effect(“Checkbox Control”)(“Checkbox”)==0)0 else 100