remove if checking of battery capacities as float since falsey values are not useful in this context
remove redundant function.