ensure votes is an array