.dropdown.js-select-group-manager{ class: "#{properties[:class]}#{properties[:options].empty? ? ' is-disabled' : ''}" }

  %label.dropdown__value.js-select-overlay.icon--chevron-down--after
    = properties[:selected] || properties[:placeholder] || properties[:options].first[:title] || ""

  %select.dropdown__select.js-select{ id: properties[:id], name: properties[:name], data: properties[:data], class: properties[:dropdown_class], disabled: properties[:options].empty? }

    - if properties[:options].empty?
      %option{ value: "" }<
        Nothing to select
    - elsif properties[:placeholder]
      %option{ value: "" }<
        = properties[:placeholder]

    - properties[:options].each do |option|
      %option{value: option[:value] || option[:title], selected: properties[:selected] == option[:title] ? 'selected' : false}<
        = option[:title]

- no_options = properties[:options].nil? || properties[:options].empty?

.dropdown.js-select-group-manager{ class: "#{properties[:class]}#{no_options ? ' is-disabled' : ''}" }
  %label.dropdown__value.js-select-overlay.icon--chevron-down--after
    - unless no_options
      = properties[:selected] || properties[:placeholder] || properties[:options].first[:title] || ""

  %select.dropdown__select.js-select{ id: properties[:id], name: properties[:name], data: properties[:data], class: properties[:dropdown_class], disabled: no_options }

    - if no_options
      %option{ value: "" }<
        Nothing to select
    - elsif properties[:placeholder]
      %option{ value: "" }<
        = properties[:placeholder]

    - properties[:options].each do |option|
      %option{value: option[:value] || option[:title], selected: properties[:selected] == option[:title] ? 'selected' : false}<
        = option[:title]

Fix check for no options to account for nil value as well.
Fix check for no options to account for nil value as well.
