component registry can check if a component is registered or not