Added console.log to the conditional.