Avoid dict:is_empty/1 for compat with old OTP versions