rename is_assoc_array to comply with PSR-1