you can use just `if NetworkInterfaces.Current["STARTMODE"] || "" != "managed"` as `nil != "managed"`