code: function validateInput(method, data, x, y, dataArray) {
          validateXY(method, x, y);
          if (dataArray && !J.isArray(data)) {
              throw new TypeError('Table.' + method + ': data must be array.');
          }
      }
docs: ### validateInput
  
  Validates user input and throws an error if input is not correct
  
  @param {string} method The name of the method validating the input
  @param {mixed} data The data that will be inserted in the database
  @param {number} x Optional. The row index
  @param {number} y Optional. The column index
  @param {boolean} dataArray TRUE, if data should be an array
  
  @return {boolean} TRUE, if input passes validation
  
  @see validateXY