boolean function returns 'true' and 'false instead of integer values

I'm helping!