added another check for no products