Put nil check first