#338668
if (!empty($hooks)) { foreach ($hooks as $item => $value) { if ($item != 'categories) { echo "foo"; } } }