Pass NULL rather than empty array if no result

This helps with frontend JS where an empty array is a truthy value