Lines 506-508 aren't necessary; PHP will bitch about accessing non-arrays or accessing unknown keys, but for setting, you can treat almost anything as an array and PHP will be fine..