updated isModel and isCollection