Simplifies a disk check to avoid static analyzer warnings.