def METHOD_NAME(self, user_agents):
    for device_type in user_agents['user_agents']:
        for platform in user_agents['user_agents'][device_type]:
            for browser in user_agents['user_agents'][device_type][platform]:
                if re.search(re.escape(self.custom), ' '.join(user_agents['user_agents'][device_type][platform][browser])):
                    self.headers = user_agents['headers'][browser]
                    self.headers['User-Agent'] = self.custom
                    self.cipherSuite = user_agents['cipherSuite'][browser]
                    return True
    return False