check if a $_SESSION entry exists before we try to remove it