How to go about filtering out invalid params like nil or empty list before proceed to process the params?

The `case` use below seems to be common but it's not clear code -- I am pretty sure there is a simpler and idiomatic way to do this.

```
 def load(token) do

   case token do
     nil -> nil
     [] -> nil
     token -> process(token)
   end

 end

```