Adding update and is empty methods