Removed nil tests, because nil doesn't exist in Erlang