isParent(String relationshipName) { return parents.any((parent) => parent.code == relationshipName); }