You can tell if the sugar is still there by boiling off the water and leaving the sugar behind in the container. Sugar is a solid, and therefore cannot evaporate, so when the water reaches boiling point, it will evaporate at a quicker rate than before (water evaporates at any temperature in liquid form; just not enough to be noticeable) and leave the container to become water vapour