code: function checkErrorsWithResult(error, response) {
          var errors = checkErrors(error, response);
  
          if (errors !== false) {
              return errors;
          }
  
          try {
              var body = JSON.parse(response.body);
          } catch (parseError) {
              return parseError;
          }
  
          var results = body.results;
  
          if (typeof results === "undefined" || results.result.length === 0) {
              return new Error("The plan doesn't contain any result");
          }
  
          return false;
      }
docs: Method checks for errors in error and server response
  Additionally parsing response body and checking if it contain any results
  
  @param {Error|null} error
  @param {Object} response
  @returns {Error|Boolean} if error, will return Error otherwise false
  @protected