patch isset ternary on DbSelectFactory.php