make path an empty array when no path found