check if path is not empty