We know that we can use an if let statement as a shorthand to check for an optional nil then unwrap.
if let
However, I want to combine that with another expression
I think your original proposition is not too bad. A (messier) alternative would be:
if ((window!.rootViewController as? UITabBarController)?.viewControllers.count ?? 0) > 0 { println("do stuff") }