Allow passing isRequire detector as an option