Change error into bool