No, unfortunately there is no way to tell a server is down than simply connect to such server.
Probably the phone library itself has a better method to check if the internet connection is gone, but that's regardless of the server.
A question similar like this have been recently asked: Trap XData Server Unavailable - #5 by wlandgraf