code: function isPropertyRequired(property, requiredArray) {
    var found = false;
    requiredArray = requiredArray || [];
    requiredArray.forEach(function(requiredProperty) {
        if (requiredProperty === property) {
          found = true;
        }
    });
    return found;
  }
docs: Checks whether a property is on required array.
  @param property - the property to check.
  @param requiredArray - the required array
  @returns {boolean}