avoid exception for empty path list