Potential fix for #3051. Add isModel method to collections