A MetaMask JSON-RPC API method for retrieving the list of networks currently added in the metamask browser extension

I am working on an NFT bridge and I so I am dealing with several chains in my project. I need a method to get the list of networks that are currently added in the user’s MetaMask extension so that I can call the wallet_addEthereumChain method if the network selected by user inside the project does not exist in user’s MetaMask extension

This would make it easier to decide when we need to call the wallet_addEthereumChain method.