prevent displaying empty `<ul></ul>` for non-existing but $_COOKIE expanded rows