The `!` operator lies to the compiler about null/undefined. Check and handle the empty case explicitly.
Why This Matters
Non-null assertions suppress real null-safety errors, producing runtime `cannot read property of undefined` crashes the compiler would otherwise catch.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.