indeed, if `$attributes` is supposed to be an array, then the default value should be an empty array.