`commit.branches` truthiness check instead of `instanceof` check
`brancheslength` => `branches.length` ?