indexing an empty array should return null