def do_exit(actions):
 for action_group in actions:
  if (len(action_group.destroy) > 0):
   raise SystemExit(1)

def do_exit ( actions ) : for action_group in actions : if ( len ( action_group . destroy ) > 0 ) : raise SystemExit ( 1 )
if resources are destroyed .