And the logical extension would be don't go hiking with anyone who might split the party or strand you, I suppose.
Well, as much as one might.
Many of the very good lessons of goofing around climbing with randos has been refined skills at evaluating partners, which I had not previously considered to be a skill that could be developed in its own right and which has served me quite well as I have worked at it in my larger life.