Fix array checking in proxy_vhost