Verify global's return value instead of checking whether the output is
empty.