Create `isRelated` helper function