this console.log statement is unnecessary. all we need to do here is determine if the string exists in the array.