CBPHelper :: IsAssociativeArray: Bitrix method

      
<?php 
//  CBPHelper :: IsAssociativeArray()
//  /dist/bitrix/modules/bizproc/classes/general/helper.php:1798

    
public static function IsAssociativeArray($ar)
    {
        if (!
is_array($ar))
        {
            return 
false;
        }

        
$fl false;

        
$arKeys array_keys($ar);
        
$ind = -1;
        
$indn = -1;
        foreach (
$arKeys as $key)
        {
            
$ind++;
            if (
$key."!" !== $ind."!")
            {
                if (
substr($key01) === 'n')
                {
                    
$indn++;
                    if ((
$indn === 0) && ("".$key === "n1"))
                        
$indn++;

                    if (
"".$key !== "n".$indn)
                    {
                        
$fl true;
                        break;
                    }
                }
                else
                {
                    
$fl true;
                    break;
                }
            }
        }

        return 
$fl;
    }