Fix: make isStack() function safe with any input type
Add a is() method to test the model type