Tweak instance variable nil check to fix warning