bool isBatteryPresent()

Detects whether the device has a battery or not.

Return

True if the device has a battery, false otherwise