Replace the empty check for a check on an empty string
Replace the empty check for a check on an empty string

Calling the empty() function returned true for a segment equalling 0,
which is a completely valid value.  Need to be more careful when using
empty() from now on.

Metrol/Route