Check for the data types because the number 0 is evaluated to false on the if statement.