Hard to say. Kenya had number portability for ~10 years. From 2011 to around 2021. Which means you could keep your phone number but change carriers. So unfortunately there's no guaranteed way to tell if a number is Safaricom, Airtel or Telkom. If there was we would certainly prevent payments that would certainly fail.