isOk()) { return $result->json()['text']; } else { throw new Exception("Sorry, but I can\'t fetch number facts right now. Try again later."); } } }