How Can I identify a Material?

I have some gameobjects that in some conditions have an additional material added to them programatically at run time. I then later want to be able to remove that specific material. How can I identify the material? material.name gives the gameObject name not the material itself.

Currently I am assuming the last material in the array is the one to remove, but this may not always be correct.