return empty array when localstorag is null
save in data