fix throw notice in validators, when input value is array