check is array or object in server data