made sure we deal with arrays only