You should probably check `instanceof Model` instead.