public function isSelected($value = true)
    {
        if ($this->value === null) {
            return false;
        }

        return (string) $value === (string) $this->value;
    }
public function isSelected($value = true)
    {
        if ($this->value === null) {
            return false;
        }

        return (string) $value === (string) $this->value;
    }
public function isSelected ( $ value = true ) { if ( $ this -> value === null ) { return false ; } return ( string ) $ value === ( string ) $ this -> value ; }
Determine if the provided value matches this field's value.
@param string $value
@return bool
Determine if the provided value matches this field s value .