Check if the model is defined