I play my animations happily with
anim.Play(theAnim);
...where 'theAnim' is a string I concatenate from a few different variables. If 'theAnim' turns out not to be a proper animation, it breaks the game. So yes, I agree that I should fix any such mistakes.
But I want to make game breaking bugs impossible, so is there a way to check on the animation before I play it, like:
if(--check 'theAnim' exists---){
anim.Play(theAnim);
}else{
anim.Play("dummySprite");
}