check if component has input or output