Added isSuccess and isFailure methods