Added assertArrayHasKey.