returning booleans instead of throwing error