added line to deduplicate empty array entries