Define a symbol and use it instead of repeating the condition