Prevent non-array for ['#attributes']['class']