Added check for Null model.