Refactored isSpare method to remove comments and clarify code intent