def is_in_stock(res_obj):
    """Checks if a product is in stock 

    Args:
        res_obj: requests_html response object of a newegg product page

    Returns:
        bool: Is the product in stock
    """
    selector = '#app > div.page-content > div.page-section > div > div > div.row-side > div.product-buy-box > div.product-flag > div > div > span'
    stock = res_obj.html.find(selector, first=True)

    if stock == None: 
        return True

    if stock.text == 'OUT OF STOCK':
        return False
        
    return True