check if model is object