Fix _setupFlight

_setupFlight isArray was checking the wrong variable.
Merge pull request #49 from pedrokiefer/patch-1

Fix _setupFlight