Added hasSelector() method to determine if a widget has a selector set or not.