where([ ['uid', $uid], ['partner_id', $partner_id] ])->exists() ) { return true; } else { return false; } } }