Now Checks for an array instead of a string when
#                       outputting xml attribute values to get
#                       around nil values