Thank you @SikoMa @cyndi @joanboston @harebell @johnson8301 and @mrahwkns for your thoughts on this. Looking at both I really think it could be either!! Which is most likely in a Uk garden? This was taken in a friend's garden early today so I can't get another photo sadly.
Ah I see Gleditsia and Robinia are both species of "Locust" tree! I hadn't realised that so thanks @cyndi, I am sure my friend will be happy just knowing the common name, but I will pass this on. Thanks again 😊