const tail = arr => (arr.length > 1 ? arr.slice(1) : arr);