def swap_up(array, element)
      index = array.index(element)

      return array if index.zero? || index.blank?