Added parenthesis around OR clause to make the condition logic clear.