I know this is an old thread - but when I try this, it didn't work as expected in the TOC. My layers were added, with a visibility of false. But the TOC didn't reflect this. They showed checked as ON in the TOC, when I expected them to be unchecked. I had to do a few clicks on/off before it was properly controlling the layers the way it should.