check array intersection