Add buildIdArray function for DRYer code