Hi there, I have just released a script that address’ your needs…
https://aescripts.com/layer-groups/
//=======================================================
Another more manual way is to create linked expressions to say a checkbox expression control..
var onOrOff =effect("Wiggle Angle?")("Checkbox");
//if switch is on
//=======================================================
if(onOrOff ==true){100;}else{0;}