Fixed error with if-statement for checking if a number has been cleared already