code: function validateData(data) {
          var random = Math.floor(Math.random() * (data.length - 0) + 0);
  
          // ensure: containing Array and Object keys
          var ok = Array.isArray(data) || data instanceof Array;
          ok = ok && ['code', 'name', 'age'].every(function (k) {
            return data[random].hasOwnProperty(k);
          });
  
          return ok ? data : this.respond(false, 'Supplied data is invalid');
        }
docs: Check data structure of supplied data
  
  @param {Array} data