var resultImages = [[true]]
function newPrice(price, image) {
if (typeof(resultImages[price]) != 'object') {//(!resultImages[price])
resultImages[price] = [];
}
resultImages[price][image] = true;
}
newPrice(5, 5);
newPrice(5, 6);
alert(resultImages);