guard for Enum.sample/2