Fixes #479

Perhaps `getTo()` should just return an empty array instead of `null`, but this fix has fewer potential ramifications.
I'm pretty sure the symfony coding style is to put `null` on the left side: `if (null === $to)`.