Check if the lore array is null before trying to edit