Replace exists with state