I am trying to get History for a symbol. But got below key not exist error

“To prevent the exception, ensure that the 'TCK TJVJKNII45T1' key exist in the collection and/or that collection is not empty.
history = self.History(cf.Symbol in ./cache/algorithm/project/main.py: line 31”

How should I avoid this issue? Check key exist before querying History? If so, how do I do that? It's not documented in history request page. 

Thanks!

    def CoarseSelection(self, coarse):
        by_market_cap = sorted(coarse, key=lambda x: x.DollarVolume, reverse=True) 
        for cf in by_market_cap[:2000]:
            if cf.Symbol not in self.symbols:
                self.symbols[cf.Symbol] = Hammer(cf.Symbol)

            history = self.History(cf.Symbol, 1, Resolution.Daily).loc[cf.Symbol]