Refactor
Fix: Don't generate hash for nil payload