checking for models in invoke-models