private function _getNamespaceDepth() { $namespace = craft()->templates->getNamespace(); return preg_match_all('/\\bfields\\b/', $namespace); }