@HappyTiger
$itemUser= User::newInstance()->findByPrimaryKey(osc_item_user_id());
if(@$itemUser['b_company'] != 1) {
}
... take more attention to naming of your variables, as well that in PHP 8, 0 != '', null != 0 (I think), so it's better to check against 1.