Check if undefined to avoid call didChange