Changed nil check to negative