Fix array check if array is no object.