added empty array if localstorage doesn't exist