Solution:
is_woocommerce() is a function.
is_woocommerce()
The correct syntax is:
if (is_woocommerce() && $item_position === 2 ) { continue; }