function hasCustomValidator(validator) {
    return customValidators.indexOf(validator) !== -1;
  }
Checks if prop should be validated by plugin-react-proptypes
@param {string} validator Name of validator to check.
@returns {boolean} True if validator should be checked by custom validator.