Checking if able to commit