seperated checknig for array-type definition and array value