Adding If Statement for Checking if operationHistory is Empty