Filter product by different tables - Cakephp 3.8

Maybe this is the clean solution:
$additionCond = $this->getAdditionConditions($q);
$condition = [‘OR’ => $additionCond];

private function getAdditionConditions(string $q): array
{
    return [
        $this->Products->aliasField('name') . ' LIKE' => $q,
        $this->Users->aliasField('name') . ' LIKE' => $q,
}