using ForLoop to test are items in are array