InDesign CS4 how to test for transparency/effects lost when ungrouping

I’m creating a script for InDesign CS4 that will ungroup objects - but only if there are no effects/transparency applied to the group. Anyone know of an easy way to test for whether a group has anything applied that would be lost if ungrouped? For instance an easy test for whether any transparency settings exist without having to create a long list testing for each transparency attribute? Or perhaps something that will try and catch for the warning that comes up that applied effects will be lost?

Thanks for any help!