checking for arrays AND lists