Fix PHP warning in plugin Tools

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