checking to see if each element is destroyed?

Hello. If I have an array of objects, how can I check to see if every element in the array is null? Thanks

var nullController : int = 0;

for(var i : int = 0 ; i < myArray.Length - 1; i++)

{

 if(myArray *== null)*

nullController++;
}
if(nullController == myArray.Length)
Debug.Log("All element are null);
else
Debug.Log("All element arent null);
Maybe it can help…