Sometimes there is a better way to handle a problem if given the entire context. What exactly are you trying to accomplish? What compliance check/rule are you trying to do on your servers? What BSA version is this?
you can't nest for loops in a rule condition. do the check in the EO.