You should return a boolean, not a number.