use 'array.some' instead of 'for' loop