* Use foreach instead of array merge.
* Add head elements as array of contents