Making sure model exists before calling its runtime