Did you prevent to use "elseif (isset($args['except'])) {" intentionnaly?