I have an object that sometimes includes an array. How do I handle the exeption that occur when its not defined?