I'm well aware of what also works for just == ''

Look at the file cache for both shared and the local file storage and you'll see there are no checks for null parameters because the scanner and updater are doing this. Go ahead and make the changes to all the functions if you wish.