add a way to specify how the check is performed (logging the error,
throw an error, etc)