Warning!
When unset from an array, if you unset all elements, the array is always set
$tab=array('A'=>1,'B'=>2);
unset($tab['A']);
unset($tab['B']);
echo isset($tab)." ".count($tab);
output: 1 0
Warning!
When unset from an array, if you unset all elements, the array is always set
$tab=array('A'=>1,'B'=>2);
unset($tab['A']);
unset($tab['B']);
echo isset($tab)." ".count($tab);
output: 1 0