is there any way to check via scripting if a group is enabled or not?

#test on
alias lala { echo $chan lala }
#test end

-------------
Question 2:
and is there any way to turn off some pieces of an event?