It looks like there will only be something in the response string in the `(args[1] == "ping")` case, is that true? If so, this code should be moved to that block above.