Can I define fallback behavior for the “object has no member" error?

Thank you. I have clarified the question to rule out this possibility. I am trying to achieve what we might call “automatic failover” behavior.

Your suggestion seems like it might work if dynamicMember could become a key path, but apparently key paths can’t refer to instance methods.