Yes, seems that [""] should be returned if list is empty,  I also can only guess (not being author of these lines). I will use ruby code to make it easier to read.