Hum, another option would be to provide just two fixed functions:

 + requireCheckedMode -- throws exception if not checked mode
 + warnIfNotCheckedMode -- warning popup if not checked mode