Repaired issue where undefined arrays would opt to publish everything