src/OptionStore.php
public function getBoolean(string $optionName): bool
    {
        return in_array(
            $this->get($optionName),
            self::TRUE_VALUES,
            true
        );
    }
public function getBoolean(string $optionName): bool
    {
        return in_array(
            $this->get($optionName),
            self::TRUE_VALUES,
            true
        );
    }
public function getBoolean ( string $ optionName ) : bool { return in_array ( $ this -> get ( $ optionName ) , self :: TRUE_VALUES , true ) ; }
Cast an option value into boolean.

@param string $optionName Name of option to retrieve.

@return bool
Cast an option value into boolean .