Use static method is_network_activated()