I don't believe there is a connection in this case. I know William died in 1889 aged 65. The Scots were pretty frugal in allocating Christian names, hence the similarity. Also William's father was John apparently. Rumor has it that they were descended from a John in the 18th Century that had 18 sons, if you have any record of such an accomplishment.