Fix conditional statement when check for instance value on widget method.