protected function isAssoc(array $array) { return count(array_filter(array_keys($array), 'is_string')) > 0; }