fix a PHP notice for unset index