Have taken a look at array.foreach and that looks like the better way to do it, shall give it a go!