protected function _hasValEnum($valEnum, $type) { foreach (array_keys($valEnum) as $key) { if (in_array($type, explode(',', $key))) { return true; } } return false; }