in src/TypeAssert.hack [26:32]
function is_nullable_bool(mixed $value, string $field): ?bool { if ($value === null) { return null; } invariant($value is bool, '%s should be a ?bool', $field); return $value; }