@wibblymat If you installed package `foo` and you happen to be in its dir or subdir, it will have a `bower.json`.  It will also have a `.bower.json`.  Without this check, it would think *your* package is `foo`.