Replacement PR for #702

To see if a fresh branch and PR will build with Travis.
Should check the length of an array before indexing into it. Perhaps throw an IdentifierException if the item has no ispartof?