According to docs, EEPROM.end() in https://github.com/esp8266/Arduino/blob/master/libraries/EEPROM/EEPROM.cpp is a commit() followed by a free of used RAM. Since commit() return a bool, also end() should return a bool to check if the commit failed or not.