Make return values logical