boolean public \Bitrix\Main\Request::isAjaxRequest( );
Non-static method returns true when current request is AJAX.
No parameters