Return should be bool; you describe its values as "true" and "false" after all, not "1" and "0" !