Use guards instead of conditionals.