check if an array, if yes, grab the first index