add one condition for checking is array value

add one condition for checking is array value