use Enum.empty?. updated to elixir version 1.