WiFi power status

Would it be possible to add a function to the WiFi class to get know if the WiFi module has started?

The reason I am asking, is because I am powering the Photon from a USB powerpack and I would like to know when the juice is running out. When the battery is running out of power, the powerpack is still providing 5v, but is unable to deliver enough milliamps for the photon to run properly. This results in a still functioning and responding MCU, but no more wifi.

It would be nice to inform the user about this by flashing the LED for instance.