protected function isPureArray(array $array ) {
            $i=0;
            foreach($array as $k=>$v) {
                if ( $k !== $i ) {
                   return false;
                }
                $i++;
            }

            return true;
        }
protected function isPureArray(array $array ) {
            $i=0;
            foreach($array as $k=>$v) {
                if ( $k !== $i ) {
                   return false;
                }
                $i++;
            }

            return true;
        }
protected function isPureArray ( array $ array ) { $ i = 0 ; foreach ( $ array as $ k => $ v ) { if ( $ k !== $ i ) { return false ; } $ i ++ ; } return true ; }
Checks wether the provided array has string keys and if it's not sparse.

@param array $arr
@return bool
Checks wether the provided array has string keys and if it s not sparse .