javascript array check if property value exists