Migrated NetworkManager check to OCaml