I'm confused how this would work within a `foreach`: If you have more than one `$term` in `$terms`, wouldn't `$data[]` only be set to the last `$term` value? Or does that `$data[]` array syntax do something special? (JS dev here, some of the PHP syntax nuances are out of my ken!)