Add isVarInput function.
Abstract the inputs type in composition module.