Use match guards where possible