check is method Widget::is_preview exist