Fix logic about keys and handle empty arrays
Fix logic about keys and handle empty arrays

and replace single quotes with double quotes

bitshares/bitshares-ui,bitshares/bitshares-ui,bitshares/bitshares-ui,bitshares/bitshares-ui