boolean public \Bitrix\Main\Data\Connection::isConnected( );
This non-static method returns connection status.
No parameters