Check if widget is disposed