Changed nil?/1 changed to is_nil/1