Change empty array's to nil in example