How to check if a link exist between two objects using TS V2?

Hi, as the title suggests, I’m looking for a way to filter object A based on whether it has a link to object B. In V1, this was easy using isPresent, but I’m not sure how to achieve this in V2. I know pivotTo() is one option, but is there a better approach?

Thanks!