conditional if length > 1 for shuffle