if ($network != $null)

i dont see the purpose, but i dont see any code either, hehe.. that what your looking for?

-cheers