fix issue with return false, instead of return 0