private function isMethodExcluded($methodName, $attr)
    {
        if (empty($attr[self::CONFIG_EXCLUDE]) || !is_array($attr[self::CONFIG_EXCLUDE])) {
            return false;
        }

        return in_array($methodName, $attr[self::CONFIG_EXCLUDE]);
    }