it looks like having given my answer that i can not longer comment on others ..
A shout out to @markp-fuso for setting a very high bar for quality of answer.
I had not even considered your assumption C but your additional care for my solution is appreciated .. i am, of course, going to use your code to improve my own. Thanks for that
and a harsh raspberry to whoever down voted my own solution immediately as i posted it