where('code', $code)->where('id', '<>', $ignore_id)->exists(); } }