Returns empty array for nested object when nil