When a param is zero-length, treat it as not set. Also switched to phpunit assertSame rather than assertEqual because a test was failing because '' == null