feat: check mapping before its updated