Optimisation use of count instead of foreach was causing errors to be th...

...rown.

fixes: https://github.com/michail-nikolaev/task-force-arma-3-radio/issues/739