public function profilesHasAccessToComponent($profilesName, $componentName){
        $component= $this->context->getComponentsDefinition()[$componentName];
        if(isset($component['authorization-profiles']) && $component['authorization-profiles'] != ""){
            $profiles= str_replace(' ', '', $component['authorization-profiles']);
            $profiles= explode(',', $component['authorization-profiles']);
            return (count(array_intersect($profilesName, $profiles)) > 0);
        }else{
            return TRUE;
        }
    }