battery.rb handles missing batteries