`empty(<non-variable>)` doesn't work prior to PHP 5.5 because it can only check variables see http://php.net/manual/en/function.empty.php

Replace with `trim($defaultStatement) === ''`