Allow empty data (configurable) in response

Hi,

For my current project I needed a way to return a empty array. 
The empty data parameter is removed by default. I made some minor changes to make the feature configurable.