Only this line is necessary (checks the above condition too).
Maybe it'd be nice to check if it's an array though to avoid calling array_merge on a non-array.
In such case an wrong config exception might be a good solution.