It's not that bad:

![](http://f.cl.ly/items/0F2d19021h011A1K2C2t/Screen%20Shot%202014-04-20%20at%204.08.15%20PM.png)

Do you prefer one single `if` like: `if (!available.bower && !available.npm)`? What if a package is only registered in Bower and not in npm?