Refine conditional that checks for widget kwarg subclass