ls:model-exists?
ls:model-exists? model-or-list-of-models
Report a boolean value for whether there is a model with that model-id. This is often useful when you are dynamically generating models, and want to ensure that you are not asking models that no longer exist to do stuff.