Added the ability to clear the output buffer before setting the response ( with extra not empty check )