hashify array and get element by its key