Refactored the condition that checks if the number of disks is greater
than 0