Mikrotik Scheduler if devices are connected to wifi

Via mac, mikrotik can’t ping iPhone…

{
  :local exists [/int wire reg find mac-address="14:C2:13:73:5A:D4"];
  :local exists2 [/int wire reg find mac-address="9C:F4:8E:2D:08:2A"];
  :local exists3 [/int wire reg find mac-address="16:FB:EE:86:0A:8C"];
  :local exists4 [/int wire reg find mac-address="5A:9C:42:D5:51:0A"];
  :if ($exists!="" or $exists2!="" or $exists3!="" or $exists4!="") do={
     /tool fetch url="https://svr21.supla.org/direct/XXXX/turn-on" keep-result=no
   }  else={
            /tool fetch url="https://svr21.supla.org/direct/XXXX/turn-off" keep-result=no
      }  
}