protected function _checkNoSelected(array $options, array $selected, $isMultiply = false)
    {
        if ($isMultiply === 'multiple') {
            return array($options, $selected);
        }

        $_selected = array_pop($selected);

        if (!Arr::key($_selected, $options) && !empty($selected)) {
            $options = array_merge(array($_selected => $this->_translate('--No selected--')), $options);
        }

        return array($options, array($_selected));
    }
protected function _checkNoSelected(array $options, array $selected, $isMultiply = false)
    {
        if ($isMultiply === 'multiple') {
            return array($options, $selected);
        }

        $_selected = array_pop($selected);

        if (!Arr::key($_selected, $options) && !empty($selected)) {
            $options = array_merge(array($_selected => $this->_translate('--No selected--')), $options);
        }

        return array($options, array($_selected));
    }
protected function _checkNoSelected ( array $ options , array $ selected , $ isMultiply = false ) { if ( $ isMultiply === 'multiple' ) { return array ( $ options , $ selected ) ; } $ _selected = array_pop ( $ selected ) ; if ( ! Arr :: key ( $ _selected , $ options ) && ! empty ( $ selected ) ) { $ options = array_merge ( array ( $ _selected => $ this -> _translate ( '--No selected--' ) ) , $ options ) ; } return array ( $ options , array ( $ _selected ) ) ; }
Check on no selected and add new select option.

@param array $options
@param array $selected
@param bool|false $isMultiply
@return array
Check on no selected and add new select option .