Protect against empty array
2.0.5