check if path isn't empty