Accurate fuel gauges, inacurate fuel gages or no fuel guages.
It is the responsibility of the pilot to ensure that there is sufficient fuel to fly the planned trip plus reserve, depending on if you are VFR or IFR.
There is one thing certain if you do not have enough fuel you will have a forced landing.
And then there is no excuse..... Unless you can show that the fuel leaked out or some other unusual mechanical problem.
Chuck E.