src/Helpers/FormRenderer.php
protected function isOptionSelected($selectedValues, $option)
    {
        return is_array($selectedValues) ? in_array((string) $option, $selectedValues,false) : (string) $option === (string) $selectedValues;
    }
protected function isOptionSelected($selectedValues, $option)
    {
        return is_array($selectedValues) ? in_array((string) $option, $selectedValues,false) : (string) $option === (string) $selectedValues;
    }
protected function isOptionSelected ( $ selectedValues , $ option ) { return is_array ( $ selectedValues ) ? in_array ( ( string ) $ option , $ selectedValues , false ) : ( string ) $ option === ( string ) $ selectedValues ; }
Returns whether an option is part of a set of selected values.

@param string|int|array $selectedValues
The set of selected values, may be just 1 scalar value.
@param string|int $option
The option to search for in the set of selected values.

@return bool
If this option is part of the selected values.
Returns whether an option is part of a set of selected values .