src/Tomahawk/Forms/Element/Select.php
protected function getSelectedValue($value, $selected, $multiple = false)
    {
        if (is_array($selected)) {
            return in_array($value, $selected) ? 'selected' : null;
        }

        return ((string) $value == (string) $selected) ? 'selected' : null;
    }
protected function getSelectedValue($value, $selected, $multiple = false)
    {
        if (is_array($selected)) {
            return in_array($value, $selected) ? 'selected' : null;
        }

        return ((string) $value == (string) $selected) ? 'selected' : null;
    }
Determine if the value is selected.

@param  string $value
@param  string $selected
@param bool $multiple
@return string