handling empty children json object