Various cosmetic fixes
Various cosmetic fixes

Throw exceptions earlier, so less indentations in the code are used.
New private  method `isEmpty` to avoid duplication of same logic everywhere.
Use === where safe.
executeRedirection() able to return value. False as default to keep b/c.

ssheduardo/sermepa