Search an array using for-each style for