title: Custom redirections to make the cart page inaccessible in WooCommerce
body: <p>I would like the WooCommerce cart page to be inaccessible.</p>
  <ul>
  <li><p>If a user is trying to reach the cart page when the cart is empty, redirect to the homepage.</p>
  </li>
  <li><p>If a user is trying to reach the cart page when the cart is not empty, redirect to checkout.</p>
  </li>
  </ul>
  <p>Is that possible?</p>