replaced 'var' with 'let'
replaced 'for..in' loop with the 'some' iterator to cycle though items