We should be able to drop the `!empty($proxy)`. `!empty($proxy['host'])` will not issue a notice even though proxy is empty.