This should be a private function, though I'd opt for just using a simple `is_array()` check and let people errors if they pass a non-associative arrays.