erlang: rewrite conditional for clarity

Signed-off-by: Adam Vandenberg <flangy@gmail.com>