public static function toBooleanValue(string $value): bool
    {
        if (empty($value)) {
            return false;
        }
        
        return !in_array(strtolower(trim($value)), StringUtils::FALSES);
    }
public static function toBooleanValue(string $value): bool
    {
        if (empty($value)) {
            return false;
        }
        
        return !in_array(strtolower(trim($value)), StringUtils::FALSES);
    }
public static function toBooleanValue ( string $ value ) : bool { if ( empty ( $ value ) ) { return false ; } return ! in_array ( strtolower ( trim ( $ value ) ) , StringUtils :: FALSES ) ; }
Convert a human-readable string values to boolean value.

@param string $value
The human-readable string value to convert to boolean value.

@return bool Boolean value for the given variable.
Convert a human - readable string values to boolean value .