Potential fix for #3051. Add isModel method to collections.

One possible solution that seems really simple and configurable to me.