Added is_assoc method.