I bet the function is just so old, that when it was written python did not have booleans.