if $ != undefined do deleteModifier $ 1
$.modifiers.count
for i=1 to $.modifiers.count do deleteModifier $ 1
--Delete All Bend Modifiers ( theBends = getClassInstances Bend for b in theBends do ( refsArray = refs.dependentNodes b deleteModifier refsArray b ) )
Replies
If it returns any number other then 0 there are modifiers on the selected object.