Only register when there is a component