Added isAssoc function. Fixed params parsing.