Make a more efficient way to check whether any operations are staged.