Thanks Benjamin, I agree with your comment above. I still like this change to lines 154-157 though. The for-loop confused me a bit when I first saw it, and I would think the single call to `array_intersect` might more efficient than multiple calls via the loop and the many array assignments. Would you want to merge it if I update this commit to include only this change?