Why use a bool instead of return statement?