Remove unnecessary nil check