fix for not parsing empty arrays on client js