Fix PHP Warning in plugins/tools/controllers/tools

PHP Warning: Invalid argument supplied for foreach() in
/private/plugins/tools/controllers/tools.php on line 89