check if 'selector' exists in DOM before storing selectorToDropdownId ref