refactor(all): use `if let` syntax
Merge pull request #5 from japaric/refactor

refactor(all): use `if let` syntax