Fix first name value

Check first name to make sure it's an array before returning a value. If it's a string, the string is returned, if it's an array, index 1 is returned.