Prevent Warning: Invalid argument supplied for foreach() in system.inc

Captive portal code not checking for existance before using variable