ensure hotels object is an array