Refactored .parents & .closest to share codebase + early termination