Not that this is your fault, but why does this function not return True and False.