             return false
         }
         pattern = "^(\(pattern))$"
-        return self.matchesExist(pattern, string: string)
+        return matchesExist(pattern, string: string)
     }
 
     func matchedStringByRegex(_ pattern: String, string: String) throws -> [String] {


    func hasValue(_ value: String?) -> Bool {
        if let valueString = value {
            if valueString.trimmingCharacters(in: self.spaceCharacterSet).count == 0 {
                return false
            }
            return true

        do {
            let regex = try NSRegularExpression(pattern: pattern, options: .caseInsensitive)

            regularExpressionPoolQueue.sync {
                regularExpressionPool[pattern] = regex
            }

            return regex
