Use named captures and combine conditions to clarify if cases.