check_internet_connection
check_internet_connection(); - check whether the Internet is available
After testing, the function returns the result of its work to the script :
true – there is an Internet connection
false – there is no Internet connection