Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.
Also, psr-2 requires you to use braces for control spaces.