check if battery is present before adding it