ensure dropdownContainer exists before checking length