Help on php api

If it’s just one rule, you can use the get() method (equivalent to a CLI “get”). If you want to get all rules that match the criteria, you can use getAll() (equivalent to a CLI “print”; I could not call the PHP method “print”, because that’s a reserved word in PHP).

So either

$isDisabled = 'true' === $util->setMenu('/ip firewall nat')->get(
    $util->find(RouterOS\Query::where('comment', '1234')),
    'disabled'
);
if ($isDisabled) {
    echo 'Rule is disabled';
} else {
    echo 'Rule is enabled';
} 

or

$rules = $util->setMenu('/ip firewall nat')->getAll(array(), RouterOS\Query::where('comment', '1234'));
foreach ($rules as $rule) {
    $isDisabled = 'true' === $rule('disabled');
    if ($isDisabled) {
        echo "Rule is disabled\n";
    } else {
        echo "Rule is enabled\n";
    }
}