public function isAssoc(): bool
    {
        if (empty($this->array)) {
            return false;
        }

        return (bool) count(array_filter(array_keys($this->array), 'is_string'));
    }
public function isAssoc(): bool
    {
        if (empty($this->array)) {
            return false;
        }

        return (bool) count(array_filter(array_keys($this->array), 'is_string'));
    }
public function isAssoc ( ) : bool { if ( empty ( $ this -> array ) ) { return false ; } return ( bool ) count ( array_filter ( array_keys ( $ this -> array ) , 'is_string' ) ) ; }
Checks a value whether to be an array, if its empty and when not an empty array if it's an associative one.

@return bool
Checks a value whether to be an array if its empty and when not an empty array if it s an associative one .