Check For Animation

I'm making an FPS template for my games. So, I'm moving on to animations and etc. So basically, what I want for my guns is, if there is a Reload animation the gun will play the reload animation whenever it's time to reload. If there is no reload animation, then it'll just stay like that. So, the basic question is how do you check for certain animations.

Something like this:

var anim = animation["Your Animation Name"];
if (anim != null)
    // do stuff

You could even go so far as to put it into start and set a boolean to true, so that you don't need to check the animation clip exists each time