don't return a string the value 'undefined' if there is no battery info