public static function boolean($value, $message = null, $propertyPath = null)
{
if (!is_bool($value)) {
$message = sprintf($message ?: 'Value "%s" is not a boolean.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_BOOLEAN, $propertyPath);
}
return true;
}