I'd push this into the if (Stack) bracket to make it clear (and append the current file in an else)