Consolidated the checking of self.animatedImage.images.count with the check to test if animatedImage is nil.