If use pure client side
1. create a widget (without append to a parent), without render widget's DOM element on HTML document
2. invoke widget.isVisible(true), according to the API, when pass "true" argument, will check whether DOM element is visible or not
result: return "true"
BTW since the widget is not render yet, there's no DOM element, should return false
Also refer to append file