validate Proxy
Validate if proxy is working by sending a query-request to our Minecraft Ping Server. This eliminates proxy that only work for HTTP(S) connections.
This function also automatically adds the proxy to our list, if index is not provided. If index is provided, it will swap out the proxy at that index with the new one. If checkOnly is true, we will skip adding the proxy to our list.