check array instead of item