Cambiarlo por:

$location = isset($location['LAN_LOCATION']) ? $location['LAN_LOCATION'] : '';