[fix] negate comparsion, check if baton->path is not empty