Revert "fixed some code quality issues, $object is no longer FALSE when in error"

This reverts commit dc7ba69c2317f2beb4e424f131cf52ebc823ded3.
fixed PHPUnit failing with 255