[spark] Is empty result should work with any type of data