test if header values are arrays, if so get first one