i saw @lsmith77 using `(array)` to simplify this. found http://www.php.net/manual/en/language.types.array.php#language.types.array.casting that explains this feature. this could further shorten your code here.