Sorry, I ededit the above comment because I reversed the order of the condition.