refactor(all): use `if let` syntax