checks array and returns first value of array
loops through array to find vegetable