def does_ticker_exist(connector, ticker):
    """
    Check if a given ticker exists in the stock database.
    
    """
    cur = connector.cursor()
    cur.execute('SELECT TICKER FROM stock_data WHERE TICKER = %s', (ticker,))
    return cur.fetchone() is not None
