Here we want to make sure that the requiredPackageName is not null and at the same time not empty string. The original condition will always return true.