normanjoyner/node-fleetctl — pull request #9 by jareddlc (2014-11-12 22:15:15+00:00)
Title: fix isObject

I was trying to use the `fleetctl.start()` function which would fail, when not providing with a options parameter. I looked into what was causing the issue and it seems like the `lodash.isObject()` evaluates a function to be true, which in turn causes it the logic to execute incorrectly and callback an undefined variable.

Changing the order of evaluating is a quick fix, but may not be the best solution. Please test to make sure this PR does not break any other features, as I have only tested it with `fleetctl.start()`.

I know this is not the `lodash` module, but I encountered similar issue. https://github.com/jashkenas/underscore/issues/580