I usually do reuse in PHP via includes, everything else is just too much trouble, and way too much typing for me..
that's a matter of reuse again.. you'd need to do this is_array check at any place, where such a data structure _might_ come up. just ask the data to do it, and you're set. and if...