fixed check for if EEPROM is formatted