Type guard that checks if a Result is a Failure.
The Result to check
True if the result is a Failure, with proper type narrowing
Type guard that checks if a Result is a Failure.