checking if system has battery