we use !empty() so it should work the same with and without it.
https://github.com/phpbb/phpbb/blob/develop/phpBB/phpbb/db/driver/driver.php#L715

However you can just check whether its there or whether you need to add it.