Want to delete array
<p>Can anyone help me to improve this code? I want to delete array if it already exists. Thanks</p>

<pre><code>if(count($cart['Item']) &gt; 0) {
    unset($cart['Item']);

    $items['Item'] = array();
    $cart = array_merge($cart, $items);
}
</code></pre>
