Refactoring isSpare.
Temporary solution.