def check_proxy_code(self, address) -> bool:
deployed_proxy_code = self.w3.eth.getCode(address)<EOL>proxy_code_fns = (get_paying_proxy_deployed_bytecode,<EOL>get_proxy_factory_contract(self.w3,<EOL>self.proxy_factory_address).functions.proxyRuntimeCode().call)<EOL>for proxy_code_fn in proxy_code_fns:<EOL><INDENT>if deployed_proxy_code == proxy_code_fn():<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Check if proxy is valid
:param address: address of the proxy
:return: True if proxy is valid, False otherwise