Check the IWidget is widget or not. Closes #140