check if array object is defined