Refactor the html helper and add array helper