don't call isVisible() on non-object