small fixes about check isArray