added array checker