Plug the solenoid in so it's open then open the needle valve all the way, if you don't get any CO2 bubbles then the bottle is definitely empty.
However, a small amount of pressure may remain, but nothing that's going to do any damage. Unplug the solenoid, and unscrew the regulator slowly, you...