added array to type check for convenience