check for array safely since array is object; add schema with arrays to test coverage