code optimisation - stuck.

im C-tarded but I am pretty sure if you dont return it just returns null or zero (neither is == to 1)