lib/Elastica/Index/Settings.php
public function getBool(string $setting): bool
    {
        $data = $this->get($setting);

        return 'true' === $data || '1' === $data || 'on' === $data || 'yes' === $data;
    }
public function getBool(string $setting): bool
    {
        $data = $this->get($setting);

        return 'true' === $data || '1' === $data || 'on' === $data || 'yes' === $data;
    }
public function getBool ( string $ setting ) : bool { $ data = $ this -> get ( $ setting ) ; return 'true' === $ data || '1' === $ data || 'on' === $ data || 'yes' === $ data ; }
Returns a setting interpreted as a bool.

One can use a real bool, int(0), int(1) to set bool settings.
But Elasticsearch stores and returns all settings as strings and does
not normalize bool values. This method ensures a bool is returned for
whichever string representation is used like 'true', '1', 'on', 'yes'.

@param string $setting Setting name to return

@return bool
Returns a setting interpreted as a bool .