Check the IWidget is widget or not. Closes #180