check if model is set