Add $wgServer check