check if path is nil