Empty index with empty value not to overwrite existing element