echo-sd: Simplify push-value-to-array logic