The goal is to compare two arrays as and check if they contain the same objects (as fast as possible - there are lots of objects in the arrays). The arrays cannot be checked
[docTypes containsObject:@"Object"];
It will works for your req. As early as fast it will return boolean value for it.