'Find' in ROS7

This is from ‘MQTT with script scenario’ from here… ‘https://help.mikrotik.com/docs/pages/viewpage.action?pageId=41680915

The script contains this section…

# Health is a bit iffy since '/system health' does not have 'find' in ROS6
:local health [/system health print as-value]
:local supplyVoltage 0
:local boardTemp 0
:foreach entry in=$health do={
    :if ($entry->"name" = "voltage") do={:set $supplyVoltage ($entry->"value")}
    :if ($entry->"name" = "board-temperature1") do={:set $boardTemp ($entry->"value")}
}

I am looking for some clarity on the “Health is a bit iffy since ‘/system health’ does not have ‘find’ in ROS6”. Is this script written to be backwards compatible with ROS6? Can it be improved if being used with ROS7?

Thanks in advance.

http://forum.mikrotik.com/t/health-readings-with-v7/153394/1