How to check has a input or not in custom component?

Thank you David.i understand.