_isAssoc method added