data['options']; $comparison_value = 'yes' === $options[0]; return $cart->get_context()->is_customer_logged_in() === $comparison_value; } }