Avoid writing the return header multiple times.