public function detectArray(array $texts)
    {
        /** @noinspection XmlUnusedNamespaceDeclaration */
        $requestXml = '<ArrayOfstring xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">';
        if (sizeof($texts) > 0) {
            foreach ($texts as $str) {
                $requestXml .= "<string>$str</string>";
            }
        } else {
            throw new Exception('$texts array is empty.');
        }
        $requestXml .= '</ArrayOfstring>';

        return $this->post('/DetectArray', [], $requestXml, true, $texts);
    }