Hmm, I don't know enough to give you a confident answer yet. The provided extracts do not contain information about using the Javascript SDK of Ory Keto to check if a relationship exists. I recommend checking the official Ory documentation for more detailed information.