use array's include intead of checking return of index