doing what @jmarshallnz suggested is only a single line of code added, right? check IsVisible too when you check the setting.