Checks whether there is a network connection and the server can be reached.
Syntax:
IsServerAvailable()
Parameters:
None
Returns:
Logical.
Returns True if there is a network connection and the server can be reached.
Returns False if after 10 seconds there is no response.
If on the last access to the server, it is found that the offline metadata is not synced, then from that point onwards, this function will return False.
Note:
IsServerAvailable should be called as a condition to calling non-Offline programs.